const state = {
	categories:[]
}
 const getters = {}
const mutations = {
	updateCategoriesMutation(state,payload){
		state.categories = payload
	}
}
const actions = {
	async getCategoriesAction({commit}){
		 return new Promise(async (resolve)=>{
			let res = await this._vm.$u.api.getCategories()
			commit("updateCategoriesMutation",res)
			 resolve()
		})
	}
}
export default {
	namespaced:true,
	state,
	getters,
	mutations,
	actions
 }